<?php
class request extends request_Core
{
	public static function execute($controller,$method,$param1=null,$param2=null,$param3=null,$param4=null,$param5=null)
	{
		$controller = ucwords($controller).'_Controller';
		$c = new $controller();
		if(!is_null($param5))
			return $c->$method($param1,$param2,$param3,$param4,$param5);
		if(!is_null($param4))
			return $c->$method($param1,$param2,$param3,$param4);
		if(!is_null($param3))
			return $c->$method($param1,$param2,$param3);
		if(!is_null($param2))
			return $c->$method($param1,$param2);
		if(!is_null($param1))
			return $c->$method($param1);
		return $c->$method();
	}
}
